export const state= () => {
    return {
        posts:[],//本地储存草稿文章
    }
}
export const mutations={
    //设置草稿文章数据
    setLocalStorage(state,post){
        state.posts.unshift(post)
    },
    
}

export const actions={
   
}